// @ts-check
import { createServer } from 'f2e-server3'

createServer({
    mode: 'dev',
    port: 3000,
    gzip: true,
    try_files: 'index.html',
    buildFilter: pathname => /^index/.test(pathname),
    proxies: [
        {
            location: '/f2e-server',
            origin: 'https://gitee.com',
            requestHeaders: (headers) => {
                return {
                    ...headers,
                    host: 'gitee.com',
                }
            }
        }
    ],
})
